Skip to content

verifytypes#46524

Merged
l0lawrence merged 6 commits into
Azure:mainfrom
l0lawrence:verifytypes
Apr 24, 2026
Merged

verifytypes#46524
l0lawrence merged 6 commits into
Azure:mainfrom
l0lawrence:verifytypes

Conversation

@l0lawrence
Copy link
Copy Markdown
Member

@l0lawrence l0lawrence commented Apr 24, 2026

Note the bump in version may decrease scores for verifytypes in packages that have pyright disabled closes #46426

l0lawrence and others added 2 commits April 24, 2026 10:17
Co-authored-by: Copilot <copilot@github.com>
@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - appnetwork

@l0lawrence
Copy link
Copy Markdown
Member Author

l0lawrence commented Apr 24, 2026

/azp run python - horizondb

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - appnetwork

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - horizondb

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@l0lawrence l0lawrence marked this pull request as ready for review April 24, 2026 18:22
Copilot AI review requested due to automatic review settings April 24, 2026 18:22
Copy link
Copy Markdown
Member

@scbedd scbedd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @l0lawrence !

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the type verification tooling configuration by bumping Pyright and improving error handling when --outputjson isn’t valid.

Changes:

  • Bump the pinned Pyright version used by verifytypes.
  • Add fallback diagnostics when Pyright doesn’t emit valid JSON (both on success and failure).
  • Update pyrightconfig.json to target Python 3.10.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
pyrightconfig.json Updates Pyright’s configured target Python version to 3.10.
eng/tools/azure-sdk-tools/azpysdk/verifytypes.py Bumps Pyright version and adds robust handling + diagnostic reruns when JSON output is invalid.

Comment thread pyrightconfig.json
Comment thread eng/tools/azure-sdk-tools/azpysdk/verifytypes.py
Comment thread eng/tools/azure-sdk-tools/azpysdk/verifytypes.py
Comment thread eng/tools/azure-sdk-tools/azpysdk/verifytypes.py
@l0lawrence l0lawrence enabled auto-merge (squash) April 24, 2026 18:48
@l0lawrence l0lawrence merged commit fd299d0 into Azure:main Apr 24, 2026
32 checks passed
fafhrd91 pushed a commit to fafhrd91/azure-sdk-for-python that referenced this pull request Apr 28, 2026
* testing fix

Co-authored-by: Copilot <copilot@github.com>

* verbose output

* we dont support 3.9 anymore

* update verifytypes pyright

* add guard

* Revert unrelated pyproject.toml license changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verifytypes: pyright produces empty output during install_from_main comparison, causing silent failures

3 participants